package com.virgo.demo.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.virgo.demo.system.domain.AdminUserDo;

import java.util.HashMap;

public interface AdminLoginService extends IService<AdminUserDo> {

	/**
	 * 用户名密码登录
	 * @param username String
	 * @param password String
	 * @param ip String
	 * @param userAgent String
	 * @return HashMap<String, Object>
	 */
	HashMap<String, Object> login(String username, String password, String ip, String userAgent);

	/**
	 * 退出登录
	 */
	void logout();

	/**
	 * 修改登录密码
	 * @param oldPwd String
	 * @param pwd String
	 */
	void uodateLoginPwd(String oldPwd, String pwd);
}